/**
 * 
 */
package com.quiz.activity.questions;

import android.app.Activity;
import android.view.View;
import android.view.View.OnClickListener;


/**
 *
 * @author Brian Boyle
 * Apr 14, 2012
 */
public class WhackedDialogClickListener implements OnClickListener {

    private Activity context;

    public WhackedDialogClickListener(Activity context) {
        this.context = context;
    }

    /**
     * {@inheritDoc}
     */
    public void onClick(View v) {
        //Intent backToSectionsIntent = new Intent(this.context, SectionsBrowserActivity.class);
        //backToSectionsIntent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
        //this.context.startActivity(backToSectionsIntent);
        this.context.dismissDialog(QuestionActivity.WHACKED_DIALOG);
        this.context.finish();
    }

}
